package com.flyme.module.base.provider.service.impl;

import com.flyme.core.base.supper.service.impl.BaseServiceImpl;
import com.flyme.module.base.client.entity.SysUserstudy;
import com.flyme.module.base.provider.mapper.SysUserstudyMapper;
import com.flyme.module.base.provider.service.SysUserstudyService;
import org.springframework.stereotype.Service;

@Service
public class SysUserstudyServiceImpl extends BaseServiceImpl<SysUserstudyMapper, SysUserstudy> implements SysUserstudyService {

    @Override
    public SysUserstudy findBycertId(String certificateId) {
        return getOne(q().eq("userCertificateId", certificateId).eq("status","1"), false);
    }

    @Override
    public SysUserstudy findnoPay(Long userCertificateId) {
        return getOne(q().eq("userCertificateId", userCertificateId).eq("status","0"), false);
    }
}
